﻿using IconYuan.Model.Entity.Orders;
using IconYuan.Model.Entity.Stores;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IconYuan.Model.DTO.Exchanges
{
    /// <summary>
    /// 兑换订单
    /// </summary>
    public class ExchangeOrderDto
    {
        public int order_id { get; set; }
        public int user_id { get; set; }
        /// <summary>
        /// 商品总金额
        /// </summary>
        public decimal goods_price { get; set; }
        /// <summary>
        /// 订单金额(含优惠折扣)
        /// </summary>
        public decimal order_price { get; set; }
        /// <summary>
        /// 积分抵扣数量
        /// </summary>
        public int points_num { get; set; }
        /// <summary>
        /// 订单状态(30 待兑换,70 已兑换)
        /// </summary>
        public int order_status { get; set; } = 0;
        /// <summary>
        /// 订单状态描述
        /// </summary>
        public string status_desc { get; set; } = string.Empty;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime pay_time { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int goods_id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goods_name { get; set; }
        /// <summary>
        /// 商品主图url
        /// </summary>
        public string goods_image { get; set; } = string.Empty;

        public Shop shop { get; set; }
    }
}
